import { post } from '@/security/request'
import { Application_Form } from "@/utils/keyWord"

export function sendCaptchaApi(data: any): Promise<IRespResult<boolean>> {
    return post("/admin/auth/email/sendCaptcha",  data, false, Application_Form);
}

export function loginApi(data: any): Promise<IRespResult<any>> {
    return post("/admin/auth/login",  data, false, Application_Form);
}

export function flushLoginApi(): Promise<IRespResult<any>>{
    return post("/admin/auth/flushLogin", null, true, Application_Form)
}


